package org.jeecg.modules.generator.entity;

import cn.aresoft.excel.annotation.ExcelField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecg.common.api.vo.BaseEntity;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.handler.DictHandler;

/**
* @Description 数据源配置表模型
* @Author yangfeng
* @Date 2021-06-29 17:28:26
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("SYS_GENERATE_DATABASE_CONFIG")
@ApiModel(value = "数据源配置表实体",parent = BaseEntity.class)
public class SysGenerateDatabaseConfig {

        /**主键*/
        @TableId(type = IdType.ASSIGN_UUID)
        @ApiModelProperty(value = "主键")
        private java.lang.String  id;
        /**数据库连接*/
        @ExcelField(title="数据库连接",sort=1)
        @ApiModelProperty(value = "数据库连接")
        private java.lang.String  url;
        /**用户名*/
        @ExcelField(title="用户名",sort=2)
        @ApiModelProperty(value = "用户名")
        private java.lang.String  username;
        /**密码*/
        @ExcelField(title="密码",sort=3)
        @ApiModelProperty(value = "密码")
        private java.lang.String  password;
        /**驱动类*/
        @ExcelField(title="驱动类",sort=4)
        @ApiModelProperty(value = "驱动类")
        private java.lang.String  driverClass;
        /**名称*/
        @ExcelField(title="名称",sort=5)
        @ApiModelProperty(value = "名称")
        private java.lang.String  name;
        /**数据源类型：1-oracle  2-mysql 3-sqlserver*/
        @Dict(dicCode = "database_type")
        @ExcelField(title="数据源类型：1-oracle  2-mysql 3-sqlserver",sort=6,dictType="database_type")
        @ApiModelProperty(value = "数据源类型：1-oracle  2-mysql 3-sqlserver")
        private java.lang.String  databaseType;
}
